import store from '@/store/index.js';
import utils from '@/utils/utils.js';
var TableResetColumnCommand = function() {
	
};

TableResetColumnCommand.prototype.execute = function() {
	this.tableComponentModel.children = this.children;
	var componentModel = store.state.formDesigner.componentModel;
	var newComponentModel = utils.deepCopy(componentModel);
	store.state.formDesigner.componentModel = newComponentModel;
};

TableResetColumnCommand.prototype.setTableComponentModel=function(tableComponentModel){
	this.tableComponentModel=tableComponentModel;
}

TableResetColumnCommand.prototype.setTableChildrenModel=function(children){
	this.children=children;
}

export default TableResetColumnCommand
